
package com.work.mvc.model.pojo;

import java.io.Serializable;

public class YearSummary implements Serializable {

	private static final long serialVersionUID = 4675273853636183559L;

	private int overtimeMinutes;

	private int worktimeMinutes;

	private int estimatedMinutes;

	private int holidayLeave;

	private int onDemandLeave;

	private int casualLeave;

	private int overtimeLeave;

	private int sickLeave;

	private int yearDays;

	private int freeDays;

	private int workDays;

	public int getOvertimeMinutes()
	{
		return overtimeMinutes;
	}

	public void setOvertimeMinutes(int overtimeMinutes)
	{
		this.overtimeMinutes = overtimeMinutes;
	}

	public int getWorktimeMinutes()
	{
		return worktimeMinutes;
	}

	public void setWorktimeMinutes(int worktimeMinutes)
	{
		this.worktimeMinutes = worktimeMinutes;
	}

	public int getEstimatedMinutes()
	{
		return estimatedMinutes;
	}

	public void setEstimatedMinutes(int estimatedMinutes)
	{
		this.estimatedMinutes = estimatedMinutes;
	}

	public int getHolidayLeave()
	{
		return holidayLeave;
	}

	public void setHolidayLeave(int holidayLeave)
	{
		this.holidayLeave = holidayLeave;
	}

	public int getOnDemandLeave()
	{
		return onDemandLeave;
	}

	public void setOnDemandLeave(int onDemandLeave)
	{
		this.onDemandLeave = onDemandLeave;
	}

	public int getCasualLeave()
	{
		return casualLeave;
	}

	public void setCasualLeave(int casualLeave)
	{
		this.casualLeave = casualLeave;
	}

	public int getOvertimeLeave()
	{
		return overtimeLeave;
	}

	public void setOvertimeLeave(int overtimeLeave)
	{
		this.overtimeLeave = overtimeLeave;
	}

	public int getSickLeave()
	{
		return sickLeave;
	}

	public void setSickLeave(int sickLeave)
	{
		this.sickLeave = sickLeave;
	}

	public int getYearDays()
	{
		return yearDays;
	}

	public void setYearDays(int yearDays)
	{
		this.yearDays = yearDays;
	}

	public int getFreeDays()
	{
		return freeDays;
	}

	public void setFreeDays(int freeDays)
	{
		this.freeDays = freeDays;
	}

	public int getWorkDays()
	{
		return workDays;
	}

	public void setWorkDays(int workDays)
	{
		this.workDays = workDays;
	}

	public void updateProperties(MonthSummary monthSummary)
	{
		setOvertimeMinutes(getOvertimeMinutes() + monthSummary.getOvertimeMinutes());
		setWorktimeMinutes(getWorktimeMinutes() + monthSummary.getWorktimeMinutes());
		setEstimatedMinutes(getEstimatedMinutes() + monthSummary.getEstimatedMinutes());
		setHolidayLeave(getHolidayLeave() + monthSummary.getHolidayLeave());
		setOnDemandLeave(getOnDemandLeave() + monthSummary.getOnDemandLeave());
		setCasualLeave(getCasualLeave() + monthSummary.getCasualLeave());
		setOvertimeLeave(getOvertimeLeave() + monthSummary.getOvertimeLeave());
		setSickLeave(getSickLeave() + monthSummary.getSickLeave());
		setYearDays(getYearDays() + monthSummary.getMonthDays());
		setWorkDays(getWorkDays() + monthSummary.getWorkDays());
		setFreeDays(getFreeDays() + monthSummary.getFreeDays());
	}

}
